<?php
/**
 * CRM Phone Call Class
 *
 * @author Arkadiusz Bisaga <abisaga@telaxus.com>
 * @copyright Copyright &copy; 2008, Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-crm
 * @subpackage phonecall
 */
defined("_VALID_ACCESS") || die('Direct access forbidden');

$ret = '';
$values = $_POST['values'];
foreach($values as $v) {
	if ($ret!='') {
		$ret = $v;
		break;
	}
	$ret = $v;
}

if ($ret==='') print(json_encode(array()));
else {
	
	$bundle = DB::GetAssoc('SELECT id, f_name FROM sctv_information_data_1 where active = 1 and sctv_information_data_1.f_information_group = %d', array($ret));
	foreach ($bundle as $k=>$u)
				$bundle[$k] = $u;	
			
	print(json_encode($bundle));
}
?>